from rest_framework import serializers
from.models import *

class ContentSerializer(serializers.ModelSerializer):
    class Meta:
        model = Content
        fields = '__all__'  # 序列化所有字段，也可以指定特定字段，如 ['title', 'content']
